<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <link rel="shortcut icon" href="#" />
    <link rel="stylesheet" type="text/css" href="../../../../resources/genshin/gachaLog/gachaLog.css?v=1.0" />
  </head>
  <body id="container" class="body_box">
    <div class="container">
      <div class="info_box">
        <div class="base_info">
          <div class="uid">ID: {{uid}} （{{allNum}}抽）<span class="label label_{{type}}">{{typeName}}池</span></div>
        </div>
        <div class="info_box_border">
          <div class="info_box_data">
            {{each line val}}
            <div class="info_number">
              {{each val v}}
              <div class="item">
                <div class="big {{v.color}}">{{v.num}}</div>
                <div class="small">{{v.lable}}</div>
              </div>
              {{/each}}
            </div>
            {{/each}}
            <div class="line_box">
              <span class="line"></span>
              <span class="text">五星历史 {{lastTime}}</span>
              <span class="line"></span>
            </div>
          </div>
          <div class="info_role">
            {{each fiveArr val}}
              <div class="ritem">
                {{if val.item_type=='角色'}}
                  <img class="role" src="../../../../resources/genshin/logo/role/{{val.name}}.png" onerror="whenError(this,'role')"/>
                  <div class="role_text {{if val.num<=50}}red{{/if}}"
                  >
                    <div class="role_name">{{val.abbrName}}</div>
                    <div class="role_num">[{{val.num}}]</div>
                  </div>
                {{/if}} 
                {{if val.item_type=='武器'}}
                  <img class="role" src="../../../../resources/genshin/logo/weapon/{{val.name}}.png" onerror="whenError(this,'weapon')"/>
                  <div class="role_text {{if val.num<=40}}red{{/if}}">
                    <div class="role_name">{{val.abbrName}}</div>
                    <div class="role_num">[{{val.num}}]</div>
                  </div>
                {{/if}}
              </div>
            {{/each}} 
              {{if hasMore }}...
            {{/if}}
          </div>
        </div>
      </div>
    </div>
  </body>
  <script type="text/javascript">
    function whenError(a, type) {
      a.onerror = null;
      if(type=="role"){
        a.src = "../../../../resources/genshin/logo/role/荧.png";
      }else{
        a.src = "../../../../resources/genshin/logo/weapon/旅行剑.png";
      }
    }
  </script>
</html>